package chapter8.debug_;

public class DebugEx01 {
    public static void main(String[] args) {
        //创建对象的流程
        //1.加载Person类信息
        //2.初始化 2.1默认初始化 2.2显示初始化 2.3构造器初始化
        //3.返回对象的地址
        Person person = new Person("jack",25);
        System.out.println(person);
    }
}
class Person{
    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    private String name;
    private int age;

    @Override
    public String toString() {
        return "name"+name+
                "age=" + age;
    }
}